import {get, post ,del, put} from '../http'

// 按分页条件查询讲师
export const findAllTeacherList = (current, size, query) =>
  post(`/edu/teacher/findByCondition/${current}/${size}`, query)

export const findAllTeacher = () =>
  get(`/edu/teacher/findAll`)


// 删除讲师
export const deleteTeacher = (id) =>
  del(`/edu/teacher/delete/${id}`)


// 创建讲师
export const createTeacher = (data) =>
  post(`/edu/teacher/create`, data)


// 修改讲师
export const updateTeacher = (data) =>
  put(`/edu/teacher/update`, data)

// 根据id查询讲师
export const findByIdTeacher = (id) =>
  get(`/edu/teacher/findById/${id}`)
